package es.ats.codington.festival.interfaces.daos;

import java.sql.Connection;
import java.util.ArrayList;

import es.ats.codington.festival.domain.Place;
import es.ats.codington.festival.domain.Event;

/**
 * The Interface IEventDAO.
 */
public interface IEventDAO {
	  	
	
	ArrayList<Event> obtainAllEvent() throws Exception;
	int deleteEventDAO(int idEvent) throws Exception;
	Event updateSelectEventDAO(int idEvent) throws Exception;
	 int updateEventDAO(Event event) throws Exception;
	
	
  /**
   * Insert event dao.
   *
   * @param con the con
   * @param insertevent the insertevent
   * @return the int
   * @throws Exception the exception
   */
  public int insertEventDAO(Connection con, Event insertevent)throws Exception;
  
  /**
   * Delete event dao.
   *
   * @param con the con
   * @param idEvent the id event
   * @return the int
   * @throws Exception the exception
   */
 // public int deleteEventDAO(Connection con, int idEvent)throws Exception;
  
  /**
   * Update event dao.
   *
   * @param con the con
   * @param event the event
   * @return the int
   * @throws Exception the exception
   */
 
  
  /**
   * Check event.
   *
   * @param idPlace the id place
   * @return true, if successful
   */
  public boolean checkEvent(int idPlace);
  
  /**
   * Show all event.
   *
   * @return true, if successful
   */
  public boolean showAllEvent();

  
}

